﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Langben.DAL
{
    [MetadataType(typeof(secondProjectMetadata))]//使用secondProjectMetadata对secondProject进行数据验证
    public partial class secondProject : IBaseEntity
    {
      
        #region 自定义属性，即由数据实体扩展的实体
        
        [Display(Name = "firstProjectId")]
        public string firstProjectIdOld { get; set; }
        
        #endregion

    }
    public class secondProjectMetadata
    {
			[ScaffoldColumn(false)]
			[Display(Name = "ID", Order = 1)]
			public object ID { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "firstProjectId", Order = 2)]
			[StringLength(36, ErrorMessage = "长度不可超过36")]
			public object firstProjectId { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "projectName", Order = 3)]
			[StringLength(100, ErrorMessage = "长度不可超过100")]
			public object projectName { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "projectDate", Order = 4)]
			[DataType(System.ComponentModel.DataAnnotations.DataType.DateTime,ErrorMessage="时间格式不正确")]
			[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:d}")]

			public DateTime? projectDate { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "secondUnit", Order = 5)]
			[StringLength(100, ErrorMessage = "长度不可超过100")]
			public object secondUnit { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "projectPeople", Order = 6)]
			[StringLength(36, ErrorMessage = "长度不可超过36")]
			public object projectPeople { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "telephone", Order = 7)]
			[Range(0,2147483646, ErrorMessage="数值超出范围")]
			public int? telephone { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "preMoney", Order = 8)]
			public object preMoney { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "actualMoney", Order = 9)]
			public object actualMoney { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "projectState", Order = 10)]
			[StringLength(100, ErrorMessage = "长度不可超过100")]
			public object projectState { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "isReseach", Order = 11)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object isReseach { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "CreateTime", Order = 12)]
			[DataType(System.ComponentModel.DataAnnotations.DataType.DateTime,ErrorMessage="时间格式不正确")]
			public DateTime? CreateTime { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "CreatePerson", Order = 13)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object CreatePerson { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "UpdateTime", Order = 14)]
			[DataType(System.ComponentModel.DataAnnotations.DataType.DateTime,ErrorMessage="时间格式不正确")]
			public DateTime? UpdateTime { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "UpdatePerson", Order = 15)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object UpdatePerson { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "remark", Order = 16)]
			[StringLength(2000, ErrorMessage = "长度不可超过2000")]
			public object remark { get; set; }


    }


}

